package com.lsus.golkhadi.client.viewsImpl;

import com.allen_sauer.gwt.dnd.client.DragContext;
import com.allen_sauer.gwt.dnd.client.drop.SimpleDropController;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class SetWidgetDropController extends SimpleDropController {

	  private final HorizontalPanel dropTarget;

	  public SetWidgetDropController(HorizontalPanel dropTarget) {
	    super(dropTarget);
	    this.dropTarget = dropTarget;
	  }

	  @Override
	  public void onDrop(DragContext context) {
	    dropTarget.add(context.draggable);
	    super.onDrop(context);
	  }
}